ostree.git
3 years agoRegenerate libostree-sys
Felix Krull [Tue, 9 Oct 2018 21:27:49 +0000 (23:27 +0200)]
Regenerate libostree-sys

3 years agoIgnore internal structs in libostree-sys
Felix Krull [Tue, 9 Oct 2018 21:27:36 +0000 (23:27 +0200)]
Ignore internal structs in libostree-sys

3 years agoGenerate docs for RepoExtManual
Felix Krull [Tue, 9 Oct 2018 21:11:26 +0000 (23:11 +0200)]
Generate docs for RepoExtManual

3 years agoCopy autodocs to hand-implemented methods in RepoExtManual
Felix Krull [Tue, 9 Oct 2018 21:11:18 +0000 (23:11 +0200)]
Copy autodocs to hand-implemented methods in RepoExtManual

3 years agoAdd docs to generated files
Felix Krull [Tue, 9 Oct 2018 21:10:02 +0000 (23:10 +0200)]
Add docs to generated files

3 years agorepo: newlines
Felix Krull [Tue, 9 Oct 2018 21:07:07 +0000 (23:07 +0200)]
repo: newlines

3 years agoRegenerate libostree
Felix Krull [Tue, 9 Oct 2018 21:01:31 +0000 (23:01 +0200)]
Regenerate libostree

3 years agoRegenerate libostree-sys
Felix Krull [Tue, 9 Oct 2018 21:01:06 +0000 (23:01 +0200)]
Regenerate libostree-sys

3 years agoAdd Makefile
Felix Krull [Tue, 9 Oct 2018 20:24:06 +0000 (22:24 +0200)]
Add Makefile

3 years agoRemove sample
Felix Krull [Tue, 9 Oct 2018 20:03:14 +0000 (22:03 +0200)]
Remove sample

3 years agoAdd simple repo roundtrip test
Felix Krull [Tue, 9 Oct 2018 20:02:48 +0000 (22:02 +0200)]
Add simple repo roundtrip test

3 years agorepo: implement list_refs and list_refs_ext
Felix Krull [Tue, 9 Oct 2018 19:13:13 +0000 (21:13 +0200)]
repo: implement list_refs and list_refs_ext

3 years agoAdd RepoListRefsExtFlags
Felix Krull [Tue, 9 Oct 2018 18:57:04 +0000 (20:57 +0200)]
Add RepoListRefsExtFlags

3 years agoobject_name: extend ObjectName
Felix Krull [Tue, 9 Oct 2018 17:32:22 +0000 (19:32 +0200)]
object_name: extend ObjectName

3 years agorepo: remove now-incorrect comment
Felix Krull [Sun, 7 Oct 2018 21:50:41 +0000 (23:50 +0200)]
repo: remove now-incorrect comment

3 years agorepo: change custom new method to std::path::Path-alike
Felix Krull [Sun, 7 Oct 2018 21:14:56 +0000 (23:14 +0200)]
repo: change custom new method to std::path::Path-alike

3 years agoAdd ObjectName wrapper to solve hashing issues
Felix Krull [Wed, 3 Oct 2018 13:22:48 +0000 (15:22 +0200)]
Add ObjectName wrapper to solve hashing issues

3 years agosample: try to extract a file from the repo
Felix Krull [Tue, 2 Oct 2018 20:37:42 +0000 (22:37 +0200)]
sample: try to extract a file from the repo

3 years agoIgnore Cargo.lock in libs
Felix Krull [Sun, 30 Sep 2018 13:18:54 +0000 (15:18 +0200)]
Ignore Cargo.lock in libs

3 years agoTry implementing traverse_commit by hand
Felix Krull [Sun, 30 Sep 2018 13:18:09 +0000 (15:18 +0200)]
Try implementing traverse_commit by hand

3 years agoGenerate functions and constants
Felix Krull [Sun, 30 Sep 2018 13:17:26 +0000 (15:17 +0200)]
Generate functions and constants

3 years agoIntegrate docs into source
Felix Krull [Sat, 29 Sep 2018 21:56:32 +0000 (23:56 +0200)]
Integrate docs into source

TODO properly document those steps

3 years agoAdd as much of Repo as easily possible
Felix Krull [Sat, 29 Sep 2018 17:14:14 +0000 (19:14 +0200)]
Add as much of Repo as easily possible

3 years agoAdd additional 'new' method to Repo
Felix Krull [Sat, 29 Sep 2018 16:21:36 +0000 (18:21 +0200)]
Add additional 'new' method to Repo

3 years agoAdd a test/sample program
Felix Krull [Sat, 29 Sep 2018 16:03:05 +0000 (18:03 +0200)]
Add a test/sample program

3 years agoAdd a prelude module for star imports
Felix Krull [Sat, 29 Sep 2018 16:02:51 +0000 (18:02 +0200)]
Add a prelude module for star imports

3 years agoAdd some basic types and regenerate
Felix Krull [Sat, 29 Sep 2018 15:39:48 +0000 (17:39 +0200)]
Add some basic types and regenerate

3 years agoGenerate
Felix Krull [Sat, 29 Sep 2018 14:40:59 +0000 (16:40 +0200)]
Generate

3 years agoAdd build files for libostree
Felix Krull [Sat, 29 Sep 2018 14:40:47 +0000 (16:40 +0200)]
Add build files for libostree

3 years agoStart describing libostree
Felix Krull [Sat, 29 Sep 2018 14:23:10 +0000 (16:23 +0200)]
Start describing libostree

3 years agoAdd manual definition for stat
Felix Krull [Sat, 29 Sep 2018 13:45:04 +0000 (15:45 +0200)]
Add manual definition for stat

3 years agoUpdate names and dependencies
Felix Krull [Sat, 29 Sep 2018 13:37:23 +0000 (15:37 +0200)]
Update names and dependencies

3 years agoAdd external libraries and regenerate
Felix Krull [Sat, 29 Sep 2018 13:28:13 +0000 (15:28 +0200)]
Add external libraries and regenerate

3 years agoAdd initial gir output
Felix Krull [Sat, 29 Sep 2018 13:24:41 +0000 (15:24 +0200)]
Add initial gir output

3 years agoAdd config file and gir files
Felix Krull [Sat, 29 Sep 2018 13:21:19 +0000 (15:21 +0200)]
Add config file and gir files

Not sure if I want to keep the gir files in the repo

3 years agoMerge pull request #2598 from lucab/ups/without-systemd-fix
Joseph Marrero Corchado [Fri, 6 May 2022 11:45:02 +0000 (07:45 -0400)]
Merge pull request #2598 from lucab/ups/without-systemd-fix

lib/ostree-sysroot-deploy: add a missing include for stdint.h

3 years agoci/github: add a job for --without-libsystemd
Luca BRUNO [Fri, 6 May 2022 10:07:24 +0000 (10:07 +0000)]
ci/github: add a job for --without-libsystemd

3 years agolib/ostree-sysroot-deploy: add a missing include for stdint.h
Luca BRUNO [Fri, 6 May 2022 10:07:23 +0000 (10:07 +0000)]
lib/ostree-sysroot-deploy: add a missing include for stdint.h

3 years agoMerge pull request #2596 from cgwalters/release-2022-3
Jonathan Lebon [Wed, 4 May 2022 18:55:37 +0000 (14:55 -0400)]
Merge pull request #2596 from cgwalters/release-2022-3

3 years agoconfigure: post-release version bump
Colin Walters [Wed, 4 May 2022 17:51:45 +0000 (13:51 -0400)]
configure: post-release version bump

3 years agoRelease 2022.3
Colin Walters [Wed, 4 May 2022 17:50:06 +0000 (13:50 -0400)]
Release 2022.3

3 years agoMerge pull request #2593 from smcv/txn-refcount
Dan Nicholson [Sat, 30 Apr 2022 16:34:12 +0000 (10:34 -0600)]
Merge pull request #2593 from smcv/txn-refcount

Fix abort-on-error behaviour of transactions

3 years agorepo: Correctly initialize refcount of temporary transaction
Simon McVittie [Sat, 30 Apr 2022 11:53:42 +0000 (12:53 +0100)]
repo: Correctly initialize refcount of temporary transaction

Previously, the reference count was left uninitialized as a result of
bypassing the constructor, and the intended abort-on-error usually
wouldn't have happened.

Fixes: 8a9737a "repo/private: move OstreeRepoAutoTransaction to a boxed type"
Resolves: https://github.com/ostreedev/ostree/issues/2592
Signed-off-by: Simon McVittie <smcv@collabora.com>
3 years agorepo: Factor out _ostree_repo_auto_transaction_new()
Simon McVittie [Sat, 30 Apr 2022 11:20:11 +0000 (12:20 +0100)]
repo: Factor out _ostree_repo_auto_transaction_new()

This will allow the direct allocation in
ostree_repo_prepare_transaction() to be replaced with a call to this
function, avoiding breaking encapsulation.

Signed-off-by: Simon McVittie <smcv@collabora.com>
3 years agoMerge pull request #2589 from cgwalters/ostree-boot-complete
Jonathan Lebon [Tue, 26 Apr 2022 17:33:08 +0000 (13:33 -0400)]
Merge pull request #2589 from cgwalters/ostree-boot-complete

3 years agoAdd an `ostree-boot-complete.service` to propagate staging failures
Colin Walters [Fri, 22 Apr 2022 22:46:28 +0000 (18:46 -0400)]
Add an `ostree-boot-complete.service` to propagate staging failures

Quite a while ago we added staged deployments, which solved
a bunch of issues around the `/etc` merge.  However...a persistent
problem since then is that any failures in that process that
happened in the *previous* boot are not very visible.

We ship custom code in `rpm-ostree status` to query the previous
journal.  But that has a few problems - one is that on systems
that have been up a while, that failure message may even get
rotated out.  And second, some systems may not even have a persistent
journal at all.

A general thing we do in e.g. Fedora CoreOS testing is to check
for systemd unit failures.  We do that both in our automated tests,
and we even ship code that displays them on ssh logins.  And beyond
that obviously a lot of other projects do the same; it's easy via
`systemctl --failed`.

So to make failures more visible, change our `ostree-finalize-staged.service`
to have an internal wrapper around the process that "catches" any
errors, and copies the error message into a file in `/boot/ostree`.

Then, a new `ostree-boot-complete.service` looks for this file on
startup and re-emits the error message, and fails.

It also deletes the file.  The rationale is to avoid *continually*
warning.  For example we need to handle the case when an upgrade
process creates a new staged deployment.  Now, we could change the
ostree core code to delete the warning file when that happens instead,
but this is trying to be a conservative change.

This should make failures here much more visible as is.

3 years agoMerge pull request #2588 from cgwalters/ostree-and-ima
Colin Walters [Thu, 21 Apr 2022 22:13:07 +0000 (18:13 -0400)]
Merge pull request #2588 from cgwalters/ostree-and-ima

docs: Add new IMA document

3 years agoUpdate docs/ima.md
Colin Walters [Thu, 21 Apr 2022 20:19:14 +0000 (16:19 -0400)]
Update docs/ima.md

Co-authored-by: Jonathan Lebon <jonathan@jlebon.com>
3 years agodocs: Add new IMA document
Colin Walters [Thu, 21 Apr 2022 16:04:33 +0000 (12:04 -0400)]
docs: Add new IMA document

Now that the fixed code for `ima-sign` landed in
https://github.com/ostreedev/ostree-rs-ext/pull/283

3 years agoMerge pull request #2584 from cgwalters/fix-ci
Dan Nicholson [Thu, 21 Apr 2022 01:03:16 +0000 (19:03 -0600)]
Merge pull request #2584 from cgwalters/fix-ci

ci: Mask zincati for synthetic update

3 years agoci: Mask zincati for synthetic update
Colin Walters [Thu, 21 Apr 2022 00:23:10 +0000 (20:23 -0400)]
ci: Mask zincati for synthetic update

Our CI started falling over because coreos-assembler checks
for units stuck activating as of https://github.com/coreos/coreos-assembler/pull/2810

Really need to centralize the code for this and fix the root
problem, but...not today.

xref https://github.com/coreos/coreos-assembler/pull/2814

3 years agoMerge pull request #2583 from cgwalters/curl-check-setopt
Colin Walters [Thu, 21 Apr 2022 00:22:12 +0000 (20:22 -0400)]
Merge pull request #2583 from cgwalters/curl-check-setopt

fetcher/curl: Consistently check return value `curl_easy_setopt`

3 years agofetcher/curl: Consistently check return value `curl_easy_setopt`
Colin Walters [Wed, 20 Apr 2022 19:16:22 +0000 (15:16 -0400)]
fetcher/curl: Consistently check return value `curl_easy_setopt`

Static analyzers don't like when we only check it sometimes.

And we definitely want to know if any of these are failing.

3 years agoMerge pull request #2578 from lucab/ups/move-fixture
Colin Walters [Tue, 12 Apr 2022 15:47:07 +0000 (11:47 -0400)]
Merge pull request #2578 from lucab/ups/move-fixture

tests: move fixture to fix installed tests

3 years agotests: move fixture to fix installed tests
Luca BRUNO [Tue, 12 Apr 2022 09:53:54 +0000 (09:53 +0000)]
tests: move fixture to fix installed tests

This moves around the packed archive for bare-split-xattrs mode,
in order to fix installed tests.

3 years agoMerge pull request #2577 from dbnicholson/man-html
Colin Walters [Sat, 9 Apr 2022 19:46:25 +0000 (15:46 -0400)]
Merge pull request #2577 from dbnicholson/man-html

Publish man pages

3 years agodocs: Publish man pages
Dan Nicholson [Fri, 8 Apr 2022 21:30:07 +0000 (15:30 -0600)]
docs: Publish man pages

Make a copy of `man/html` to `docs/man` and then configure Jekyll to
include it verbatim like the API docs. A link is added to the main index
and the necessary commands are added to the github docs workflow.

3 years agoman: Create an HTML index
Dan Nicholson [Fri, 8 Apr 2022 22:51:59 +0000 (16:51 -0600)]
man: Create an HTML index

This provides something that can serve at the root of the HTML man pages
tree.

3 years agoman: Use custom XSL stylesheet for HTML output
Dan Nicholson [Fri, 8 Apr 2022 21:30:23 +0000 (15:30 -0600)]
man: Use custom XSL stylesheet for HTML output

This allows using a template stolen from systemd to turn references into
links.

3 years agoman: Allow building HTML man pages
Dan Nicholson [Fri, 21 May 2021 17:57:54 +0000 (11:57 -0600)]
man: Allow building HTML man pages

Add a --enable-man-html configure option to build HTML man pages using a
different stylesheet. The HTML pages aren't installed as I don't know
what purpose they'd serve on an actual installation.

3 years agoman: Remove unnecessary nbsp's from ostree man page
Dan Nicholson [Sat, 9 Apr 2022 00:01:31 +0000 (18:01 -0600)]
man: Remove unnecessary nbsp's from ostree man page

I really don't know what these were for. In both man and HTML output
with a recent version of the Docbook XSL, the command synopses are
already indented. I don't see any reason why they'd need to be manually
indented more.

4 years agoMerge pull request #2576 from cgwalters/archive-handle-null-link
Jonathan Lebon [Mon, 4 Apr 2022 18:32:52 +0000 (14:32 -0400)]
Merge pull request #2576 from cgwalters/archive-handle-null-link

4 years agolibarchive: Handle `archive_entry_symlink()` returning NULL
Colin Walters [Mon, 4 Apr 2022 14:25:35 +0000 (10:25 -0400)]
libarchive: Handle `archive_entry_symlink()` returning NULL

The `archive_entry_symlink()` API can definitely return `NULL`,
reading through the libarchive sources.

I hit this in the wild when using old ostree-ext to try to unpack
a chunked archive.

I didn't try to characterize this more, and sorry no unit test right
now.

4 years agoMerge pull request #2569 from WOnder93/finalize-deployment-selinux-policy
Colin Walters [Tue, 29 Mar 2022 00:55:07 +0000 (20:55 -0400)]
Merge pull request #2569 from WOnder93/finalize-deployment-selinux-policy

deploy: Try to rebuild policy in new deployment if needed

4 years agodeploy: Be a bit more verbose about SELinux bits
Colin Walters [Mon, 28 Mar 2022 21:46:59 +0000 (17:46 -0400)]
deploy: Be a bit more verbose about SELinux bits

Let's log when we don't find the expected CLI argument which
will help debug things.

4 years agodeploy: Try to rebuild policy in new deployment if needed
Ondrej Mosnacek [Wed, 9 Mar 2022 14:27:11 +0000 (15:27 +0100)]
deploy: Try to rebuild policy in new deployment if needed

Whenever the user has SELinux enabled and has any local
modules/modifications installed, it is necessary to rebuild the policy
in the final deployment, otherwise ostree will leave the binary policy
files unchanged from last deployment as it detects difference against
the base content (in rpm-ostree case this is the RPM content).

To avoid the situation where the policy binaries go stale once any local
customization of the policy is made, try to rebuild the policy as part
of sysroot_finalize_deployment(). Use the special
--rebuild-if-modules-changed switch, which detects if the input module
files have changed relative to last time the policy was built and skips
the most time-consuming part of the rebuild process if modules are
unchanged (thus making this a relatively cheap operation if the user
hasn't made any modifications to the shipped policy).

As suggested by Jonathan Lebon, this uses bubblewrap (via
g_spawn_sync()) to perform the rebuild inside the deployment's
filesystem tree, which also means that ostree will have a runtime
dependency on bubblewrap.

Partially addresses: https://github.com/coreos/fedora-coreos-tracker/issues/701

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
4 years agoMerge pull request #2573 from jtojnar/single-bin-coreutils-extensions
Colin Walters [Mon, 28 Mar 2022 15:11:55 +0000 (11:11 -0400)]
Merge pull request #2573 from jtojnar/single-bin-coreutils-extensions

tests/test-cli-extensions: Fix with single-binary coreutils

4 years agotests/test-cli-extensions: Fix with single-binary coreutils
Jan Tojnar [Sat, 26 Mar 2022 09:50:45 +0000 (10:50 +0100)]
tests/test-cli-extensions: Fix with single-binary coreutils

On systems where `coreutils` are built with `--enable-single-binary=symlinks` like Nix,
`/usr/bin/env` is symlinked to `/usr/bin/coreutils` and uses `argv[0]` to determine which program to run.
Since the `test-cli-extensions.sh` created a new symlink named `ostree-env`,
coreutils would be confused about the utility to choose, so running it would fail:

ostree-env: unknown program ‘ostree-env’
Try 'ostree-env --help' for more information.

Fixes: https://github.com/ostreedev/ostree/issues/2553
4 years agoMerge pull request #2566 from cgwalters/ci-update
Jonathan Lebon [Mon, 14 Mar 2022 19:24:23 +0000 (15:24 -0400)]
Merge pull request #2566 from cgwalters/ci-update

4 years agoMerge pull request #2528 from cgwalters/test-crate-update
Jonathan Lebon [Mon, 14 Mar 2022 19:20:54 +0000 (15:20 -0400)]
Merge pull request #2528 from cgwalters/test-crate-update

4 years agoUpdate to sh-inline 0.2
Colin Walters [Fri, 11 Mar 2022 20:37:15 +0000 (15:37 -0500)]
Update to sh-inline 0.2

Syncing up with the latest.

4 years agoci: Update docs workflow to use fcos-buildroot
Colin Walters [Mon, 14 Mar 2022 13:27:07 +0000 (09:27 -0400)]
ci: Update docs workflow to use fcos-buildroot

This way we can also use `./ci/installdeps.sh` which avoids yet
another list of dependencies.

4 years agoci: Disable Ubuntu LTS
Colin Walters [Mon, 14 Mar 2022 13:21:15 +0000 (09:21 -0400)]
ci: Disable Ubuntu LTS

It doesn't have a new enough glib.

4 years agoMerge pull request #2551 from q66/guri
Colin Walters [Mon, 14 Mar 2022 12:52:51 +0000 (08:52 -0400)]
Merge pull request #2551 from q66/guri

lib: bump glib requirement to 2.66 and port to GUri

4 years agoglib: bump glib requirement to 2.66 and port to GUri
Daniel Kolesa [Thu, 17 Feb 2022 19:12:18 +0000 (20:12 +0100)]
glib: bump glib requirement to 2.66 and port to GUri

This removes the old SoupURI copypasta from previous generation
of libsoup and opens up a path for a simple libsoup3 port.

4 years agoUpdate to rand 0.8
Colin Walters [Fri, 11 Mar 2022 20:34:59 +0000 (15:34 -0500)]
Update to rand 0.8

Part of general crate updates.

4 years agoUpdate to ostree-ext 0.6
Colin Walters [Fri, 11 Mar 2022 20:33:02 +0000 (15:33 -0500)]
Update to ostree-ext 0.6

Part of general crate updates.

4 years agoUpdate to nix 0.23
Colin Walters [Fri, 11 Mar 2022 20:32:27 +0000 (15:32 -0500)]
Update to nix 0.23

Part of general crate updates.

4 years agotests: Stop using inventory crate
Colin Walters [Thu, 27 Jan 2022 21:37:30 +0000 (16:37 -0500)]
tests: Stop using inventory crate

I was reading this thread
https://internals.rust-lang.org/t/from-life-before-main-to-common-life-in-main/16006/30
and that reminded me about this code, which it turns out actually
doesn't compile with my default local cargo config:
```
$ cat ~/.cargo/config
[target.x86_64-unknown-linux-gnu]
rustflags = ["-Ctarget-cpu=native", "-C", "link-arg=-fuse-ld=lld"]

[profile.release]
incremental = true
$ cargo b
...
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "/var/srv/walters/src/github/ostreedev/ostree/target/debug/deps/ostree_test-4ca8e730f9dc6ffc.10325uqlhkyr5uol.rcgu.o" "/var/srv/walte"
  = note: ld.lld: error: undefined symbol: __start_linkme_NONDESTRUCTIVE_TESTS
          >>> referenced by 22nn09lfsklfqvyy
          >>>               /var/srv/walters/src/github/ostreedev/ostree/target/debug/deps/ostree_test-4ca8e730f9dc6ffc.22nn09lfsklfqvyy.rcgu.o:(ostree_tes)

```

For now let's just go back to having a static list of functions.
We don't have *too* many of those.

4 years agoMerge pull request #2563 from cgwalters/tmpfiles-run
Luca Bruno [Fri, 11 Mar 2022 18:54:49 +0000 (18:54 +0000)]
Merge pull request #2563 from cgwalters/tmpfiles-run

tmpfiles: Create `/run/ostree`

4 years agotmpfiles: Create `/run/ostree`
Colin Walters [Thu, 10 Mar 2022 21:46:53 +0000 (16:46 -0500)]
tmpfiles: Create `/run/ostree`

This is referenced by https://github.com/ostreedev/ostree-rs-ext/blob/9645cee4f29786ba51ae9d62a52eeef9230146fd/lib/src/globals.rs#L16
specifically used for the (container image) pull secret in
`/run/ostree/auth.json`.

Let's pre-create the directory so users don't have to.

Motivated by https://github.com/openshift/machine-config-operator/pull/3007#discussion_r824172564

4 years agoMerge pull request #2564 from damdo/patch-1
Luca Bruno [Fri, 11 Mar 2022 17:57:26 +0000 (17:57 +0000)]
Merge pull request #2564 from damdo/patch-1

README.md: update ostree-rs language binding link

4 years agoREADME.md: update ostree-rs language binding link
Damiano Donati [Fri, 11 Mar 2022 11:12:43 +0000 (11:12 +0000)]
README.md: update ostree-rs language binding link

According to the description on https://gitlab.com/fkrull/ostree-rs/ the repository is now moved to https://github.com/ostreedev/ostree-rs

4 years agoMerge pull request #2562 from josepht/main
Luca Bruno [Thu, 10 Mar 2022 21:05:02 +0000 (21:05 +0000)]
Merge pull request #2562 from josepht/main

Add Fedora Kinoite link to index.md also.

4 years agoAdd Fedora Kinoite link to index.md also.
Joe Talbott [Wed, 9 Mar 2022 13:58:12 +0000 (08:58 -0500)]
Add Fedora Kinoite link to index.md also.

4 years agoMerge pull request #2561 from pwithnall/pull-leak
Colin Walters [Tue, 8 Mar 2022 16:22:42 +0000 (11:22 -0500)]
Merge pull request #2561 from pwithnall/pull-leak

ostree-repo-pull: Take correct out path on error

4 years agoostree-repo-pull: Take correct out path on error
Philip Withnall [Tue, 8 Mar 2022 15:36:27 +0000 (15:36 +0000)]
ostree-repo-pull: Take correct out path on error

Like every other error return path in this function, jump to the `out`
label on error here. Returning directly will cause leaks.

Spotted by reading the code, not actually necessarily encountered in the
wild.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
4 years agoMerge pull request #2560 from smcv/sigpipe
Colin Walters [Tue, 8 Mar 2022 15:29:11 +0000 (10:29 -0500)]
Merge pull request #2560 from smcv/sigpipe

test-prune: Read to the end of cut(1) output

4 years agoMerge pull request #2559 from smcv/shebang
Colin Walters [Tue, 8 Mar 2022 14:46:07 +0000 (09:46 -0500)]
Merge pull request #2559 from smcv/shebang

Fix shebang in s390x-se-luks-gencpio

4 years agotest-prune: Read to the end of cut(1) output
Simon McVittie [Mon, 7 Mar 2022 19:52:25 +0000 (19:52 +0000)]
test-prune: Read to the end of cut(1) output

If we use head(1) to take only the first two lines, then cut(1) and
earlier pipeline entries are killed by SIGPIPE (if they have not already
terminated), and that's flagged as an error under `set -o pipefail`.
Use an equivalent sed command to take exactly the second line, but
without SIGPIPE.

Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Name test-prune-Read-to-the-end-of-cut-1-output.patch

4 years agos390x-se-luks-gencpio: Use interoperable path for bash
Simon McVittie [Mon, 7 Mar 2022 21:07:25 +0000 (21:07 +0000)]
s390x-se-luks-gencpio: Use interoperable path for bash

On OSs that do not consistently merge /usr/bin with /bin, the path to
bash has traditionally been /bin/bash.

Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agos390x-se-luks-gencpio: Fix shebang syntax
Simon McVittie [Mon, 7 Mar 2022 21:06:48 +0000 (21:06 +0000)]
s390x-se-luks-gencpio: Fix shebang syntax

An indented `#!` is technically meaningless, although many shells will
run text files with the shell if asked to execute them.

Signed-off-by: Simon McVittie <smcv@debian.org>
4 years agoMerge pull request #2557 from lucab/ups/apidoc-includes
Colin Walters [Mon, 7 Mar 2022 09:10:34 +0000 (04:10 -0500)]
Merge pull request #2557 from lucab/ups/apidoc-includes

apidoc: add missing page includes

4 years agoapidoc: add missing page includes
Luca BRUNO [Fri, 4 Mar 2022 13:56:38 +0000 (13:56 +0000)]
apidoc: add missing page includes

This fixes some missing sections in API reference, adding all the
relevant includes.

4 years agoMerge pull request #2556 from ostreedev/release-2022.2
Colin Walters [Fri, 4 Mar 2022 00:23:29 +0000 (19:23 -0500)]
Merge pull request #2556 from ostreedev/release-2022.2

Release 2022.2

4 years agoconfigure: post-release version bump
Colin Walters [Thu, 3 Mar 2022 21:30:43 +0000 (16:30 -0500)]
configure: post-release version bump

4 years agoRelease 2022.2
Colin Walters [Thu, 3 Mar 2022 21:29:11 +0000 (16:29 -0500)]
Release 2022.2

4 years agoMerge pull request #2532 from lucab/ups/repo-mode-bare-split-xattrs
Colin Walters [Thu, 3 Mar 2022 14:41:45 +0000 (09:41 -0500)]
Merge pull request #2532 from lucab/ups/repo-mode-bare-split-xattrs

lib/core: introduce 'bare-split-xattrs' mode

4 years agotests/basic-bare-split-xattrs: add fixture, check read logic
Luca BRUNO [Thu, 3 Mar 2022 11:12:00 +0000 (11:12 +0000)]
tests/basic-bare-split-xattrs: add fixture, check read logic

4 years agolib/commit: disallow writing content in 'bare-split-xattrs' mode
Luca BRUNO [Wed, 2 Mar 2022 16:45:02 +0000 (16:45 +0000)]
lib/commit: disallow writing content in 'bare-split-xattrs' mode

This prevents writing content into 'bare-split-xattrs` repository,
while carving some space for experimenting via a temporary
`OSTREE_EXP_WRITE_BARE_SPLIT_XATTRS` environment flag.